package com.spic.system.activiti.service;


import com.spic.system.activiti.domain.BusinessStatus;
import com.spic.system.activiti.enums.BusinessStatusEnum;

import java.util.List;

public interface IBusinessStatusService
{
    /**
     * 新增数据：状态 WAIT(1, "待提交")
     * @param businessKey
     * @return
     */
    int add(String businessKey,String businessType,String instanceId);


    void updateStateByInstanceId(String processInstanceId,BusinessStatusEnum statusEnum);

    List<BusinessStatus> selectStatusByType(String businessType);

    List<BusinessStatus> selectStatus(String businessType, List<String> businessKeys);

    List<BusinessStatus> selectByInstanceId(List<String> processInstanceId);

    List<BusinessStatus> selectBusinessStatusList(BusinessStatus businessStatus);
}
